<!--[* $Id: postcalendar_block_view_month.htm 523 2010-01-21 00:29:03Z craigh $ *]-->
<!--[ pc_pagejs_init ]-->
<div class="postcalendar_block_view_month">
<table class="smallmonthtable">
    <col class='weeklink' />
    <!--[foreach from=$pc_colclasses item=colclassname]-->
    <col class='<!--[ $colclassname ]-->' />
    <!--[/foreach]-->
    <tr>
        <td class="monthheader" colspan="8">
            <a href="<!--[ $PREV_MONTH_URL|pnvarprepfordisplay ]-->">&lt;&lt;&nbsp;</a>
            <a href="<!--[ pc_url action="month" date=$DATE ]-->"><!--[ $DATE|pc_date_format:'%B %Y']--></a>
            <a href="<!--[ $NEXT_MONTH_URL|pnvarprepfordisplay ]-->">&nbsp;&gt;&gt;</a>
        </td>
    </tr>
    <tr class="daynames">
        <td>&nbsp;</td>
        <!--[ foreach name=daynames item=day from=$S_SHORT_DAY_NAMES ]-->
        <td><!--[ $day ]--></td>
        <!--[ /foreach ]-->
    </tr>
    <!--[ foreach name=weeks item=days from=$CAL_FORMAT ]-->
    <tr>
        <td><a href="<!--[ pc_url action=week date=$days[0] ]-->">&gt;</a></td>
        <!--[ assign var="javascript" value="" ]-->
        <!--[ foreach name=day item=date from=$days ]-->
        <!--[ if $date == $TODAY_DATE ]-->
            <!--[ assign var="stylesheet" value="monthtoday" ]-->
        <!--[ elseif ($date < $MONTH_START_DATE || $date > $MONTH_END_DATE) ]-->
            <!--[ assign var="stylesheet" value="monthoff" ]-->
        <!--[ else ]-->
            <!--[ assign var="stylesheet" value="monthon" ]-->
        <!--[ /if ]-->
        <td class="<!--[ $stylesheet ]-->" onclick="window.location.href='<!--[ pc_url action=day date=$date ]-->';">
            <!--[ assign var="titles" value="" ]-->
            <!--[ foreach name=events item=event from=$A_EVENTS.$date ]-->
                <!--[ if $event.alldayevent != true ]-->
                    <!--[ assign var="titles" value="$titles`$event.startTime` `$event.title` `$event.duration`<br /><br />" ]-->
                <!--[ else ]-->
                    <!--[ assign var="titles" value="$titles`$event.title`<br /><br />" ]-->
                <!--[ /if ]-->
            <!--[ /foreach ]-->
            <!--[ if $A_EVENTS.$date|@count ]-->
                <!--[ if $A_EVENTS.$date|@count > 2  ]-->
                    <!--[ assign var="classname" value="event-three" ]-->
                <!--[ elseif $A_EVENTS.$date|@count > 1  ]-->
                    <!--[ assign var="classname" value="event-two" ]-->
                <!--[ elseif $A_EVENTS.$date|@count > 0  ]-->
                    <!--[ assign var="classname" value="event-one" ]-->
                <!--[ else ]-->
                    <!--[ assign var="classname" value="event-none" ]-->
                <!--[ /if ]-->
                <!--[ pc_popup bgcolor="#cccccc" caption=$date|pc_date_format text=$titles|pnvarprepfordisplay assign="javascript"]-->
                <!--[ pc_url full=true class=$classname action="day" date=$date javascript=$javascript display=$date|date_format:"%e" ]-->
            <!--[ else ]-->
                <!--[ pc_url full=true class="blockevent-none" action="day" date=$date display=$date|date_format:"%e" ]-->
            <!--[ /if ]-->
        </td>
        <!--[ /foreach ]-->
    </tr>
    <!--[ /foreach ]-->
</table>
</div>